import javax.swing.ImageIcon;


public class ChangeTile {

	public static void setTile(int x,int y){
		if(Variable.type[x][y] == 1){
			System.out.println("Missed");
			Variable.img[x][y] = Variable.tile[6];
			Variable.type[x][y] = 6;
		}else{
			System.out.println("Tile was a " + Variable.type[x][y]);
			int i = Variable.type[x][y];
			CheckLevel.checkPrev(x,y,i);
			Variable.img[x][y] = Variable.tile[6];
			Variable.type[x][y] = 6;	
		}
	}
	
	public static void change(int x,int y,int t){
		//System.out.println(x+"    "+y);
		Variable.img[x][y] = Variable.tile[t];
		Variable.type[x][y] = t;
	}

}
